<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>伪类</title>
    <style>
        /* 未点击的状态 */
        a:link {
            color: pink;
        }

        /* 访问后的状态 */
        a:visited{
            color: black;
        }

        /* 鼠标悬停 */
        a:hover {
            color: green
        }
        /* 激活状态 */
        a:active{
            color: red;
        }
    </style>
</head>
<body>

    <a href="#a123">百度</a>
    
</body>
</html>